package edu.thu.studio.ormdesigner.editor.policy;

import org.eclipse.gef.commands.Command;
import org.eclipse.gef.editpolicies.ConnectionEditPolicy;
import org.eclipse.gef.requests.GroupRequest;

import edu.thu.studio.ormdesigner.editor.command.DeleteLinkCommand;
import edu.thu.studio.ormdesigner.model.diagram.link.Link;

public class LinkEditPolicy extends ConnectionEditPolicy {
    
    @Override
    protected Command getDeleteCommand(GroupRequest grouprequest) {
        Link link = (Link) this.getHost().getModel();
        return new DeleteLinkCommand(link);
    }
    
}
